package cn.javablog.Vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

@Data
public class BlogVo implements Serializable {
    private int id;
    @NotBlank(message = "博客标题不能为空")
    private String title;
    @NotBlank(message = "博客内容不能为空")
    private String content;
    private String first_picture;
    private String flag;
    private int views;
    private boolean appreciation;
    private boolean share_statement;
    private boolean commentabled;
    private boolean published;
    private int recommend;
    private Date createTime;
    private Date updateTime;
    @NotBlank(message = "分类名称不能为空")
    private String type_id;
    private int user_id;
    private String description;
    @NotBlank(message = "标题名称不能为空")
    private String tag_ids;
}
